package com.tianqu.tms.www.transfer.controller;

import java.util.List;

import com.tianqu.tms.core.base.Logger;
import com.tianqu.tms.core.base.TmsController;
import com.tianqu.tms.core.base.UserContext;
import com.tianqu.tms.dao.CityDaoImp;
import com.tianqu.tms.dao.TmsDao;
import com.tianqu.tms.dto.CityDto;

public class QueryVaoNameAjaxController  extends TmsController {
    private Logger logger = Logger.getLogger(PTransactionsInputResultController.class);
    @Override
    public void execute(UserContext uc) throws Exception {
        logger.debug(this.getClass().getName() + "#execute was called.");
        CityDaoImp cdi = (CityDaoImp) TmsDao.getInstance(TmsDao.TMS_CITY);
        List<CityDto> list = cdi.queryCityByVaoName((String)uc.getAttribute("vaoName"));
        
        uc.setAttribute("vaoList", list);
    }

}
